<?php $this->page_title = 'Roles'; ?>
<?php

$form = $this->form('grid-form')
	->grid('roles',null,array(
			'id' => t('Name'),
		),$this->users()->find_all_roles(),array(
			'toolbar' => array(
				'add' => array('label' => t('Add role'), 
					'action' => '/user/add-role', 'method' => 'link'),
			),
			'buttons' => array(
				'modify' => array('label' => t('Edit'), 
					'action' => '/user/edit-role/{#}', 'method' => 'link'),
				'delete' => array('label' => t('Delete'), 'action' => '/user/delete-role/{#}',
					'confirm' => t('Are you sure you want to remove the role permanently?')),
			),
		))
	->render();
